/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package yinshi.j2d;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Stroke;

/**
 *
 * @author yinshi
 */
public abstract class Node extends Widget {

    public static final Paint DEFAULT_BACKGROUND = null;
    public static final Paint DEFAULT_FOREGROUND = Color.BLACK;
    public static final Stroke DEFAULT_STROKE = new BasicStroke();

    public abstract void paint(Graphics2D g, int x, int y, int width, int height);
}
